package com.kele.service.impl;

import com.kele.dao.FollowDao;
import com.kele.domain.Collections;
import com.kele.domain.Follow;
import com.kele.service.FollowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FollowServiceImpl implements FollowService {
    @Resource
    FollowDao followDao;

    @Override
    public Follow findFollow(int userid, int bloggerid) {
        return followDao.findFollow(userid,bloggerid);
    }

    @Override
    public Integer deleteFollow(int followid) {
        return followDao.deleteFollow(followid);
    }

    @Override
    public Integer insertFollow(Follow follow) {
        return followDao.insertFollow(follow);
    }

    @Override
    public List<Follow> findFansList(int userid) {
        return followDao.findFansList(userid);
    }

    @Override
    public List<Follow> findFollowList(int bloggerid) {
        return followDao.findFollowList(bloggerid);
    }
}
